package dao;

import domain.Question;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface QuestionDao {
    boolean addQuestion(Question question) throws Exception;

    List<Question> queryByPage(HttpServletRequest request) throws Exception;

    int queryTotalCount(HttpServletRequest request) throws Exception;

    boolean deleteQuestion(int questionId) throws Exception;
}
